﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Cook
    {
        红烧肉,
        包菜,
        肉末茄子,
        青椒炒肉
    }
    class CookRobot : Robot
    {
        public Cook cook { get; set; }
        public CookRobot(string name, Cook cook) : base(name)
        {
            this.cook = cook;
        }
        public CookRobot()
        {

        }

        public CookRobot(string name) : base(name)
        {
        }

        public override void Wooking()
        {
            Console.WriteLine("机器人名字{0},菜名{1}",base.name,this.cook);
        }
    }
}
